package com.glodon.paas.account.dao.domain;

import java.io.Serializable;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;

/**
 * Definition of OAuth Token
 * 
 * @author guojf
 * 
 */
@Entity(value = "token", noClassnameStored = true)
public class OAuthTokenEntity implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 8804940999272309723L;

	@Id
	private String value;
	
	private String callbackUrl;
	private String verifier;
	private String secret;
	private String consumerKey;
	private boolean accessToken;
	private boolean authorized;
	private String userId;
	private long timestamp;

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getCallbackUrl() {
		return callbackUrl;
	}

	public void setCallbackUrl(String callbackUrl) {
		this.callbackUrl = callbackUrl;
	}

	public String getVerifier() {
		return verifier;
	}

	public void setVerifier(String verifier) {
		this.verifier = verifier;
	}

	public String getSecret() {
		return secret;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}

	public String getConsumerKey() {
		return consumerKey;
	}

	public void setConsumerKey(String consumerKey) {
		this.consumerKey = consumerKey;
	}

	public boolean isAccessToken() {
		return accessToken;
	}

	public void setAccessToken(boolean accessToken) {
		this.accessToken = accessToken;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public boolean isAuthorized() {
		return authorized;
	}

	public void setAuthorized(boolean authorized) {
		this.authorized = authorized;
	}
}
